<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:shiro="http://shiro.apache.org/tags">
<h:body>
	<h:form>
		<shiro:authenticated>
			<p:idleMonitor timeout="#{session.maxInactiveInterval * 1000}" onidle="sesionExpiraDialog.show()" />
	
	        <p:dialog header="SIFEAP" widgetVar="sesionExpiraDialog" modal="true" resizable="false" 
	        	draggable="false" visible="false" closable="false">  
			    <h:panelGrid columns="1">
			    	<p:spacer width="1px" height="8px" />
				    
				    <h:outputText value="#{msj['sifeap.login.sesionexpira']}" />
				    
				    <p:spacer width="1px" height="10px" />
				    
				    <h:panelGroup style="display:block; text-align:center">
						<p:commandButton type="button" id="aceptarExpirarSesion" value="#{etq['sifeap.aceptar']}" onclick="window.location.href=window.location.href;" ajax="false" />
					</h:panelGroup>
					
					<p:spacer width="1px" height="5px" />
				</h:panelGrid>
			</p:dialog>
		</shiro:authenticated>
		<shiro:notAuthenticated>
			<p:idleMonitor timeout="#{session.maxInactiveInterval * 1000}" onidle="window.location.reload()" />
		</shiro:notAuthenticated>
	</h:form>
</h:body>
</html>